package category;

import java.util.LinkedList;

import recipie.core.Ingredient;
//
   
public class Category {
	private String name;
	private Category father;
	private LinkedList<Category> subCategories;

	public String getName() {
		return name;   
	}

	public void setName(String name) {
		this.name = name;
	}

	public Category getFather() {
		return father;
	}

	public void setFather(Category father) {
		this.father = father;
	}

	public LinkedList<Category> getSubCategories() {
		return subCategories;
	}

	public void setSubCategories(LinkedList<Category> subCategories) {
		this.subCategories = subCategories;
	}

	public void addSubCateogry(Category s){
		subCategories.add(s);
	}
	

	public Category(String name) {
		super();
		this.name = name;
		subCategories=new LinkedList<Category>();
	}

	public Category() {
		name="";
		subCategories=new LinkedList<Category>();
	}
	

}
